<div class="form">


<?php $form = $this->beginWidget('GxActiveForm', array(
	'id' => 'course-batche-date-session-form',
	'enableAjaxValidation' => false,
));
?>

	<p class="note">
		<?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
	</p>

	<?php echo $form->errorSummary($model); ?>

		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'date'); ?>
</div>
		<div class="rowControl"><?php $form->widget('zii.widgets.jui.CJuiDatePicker', array(
			'model' => $model,
			'attribute' => 'date',
			'value' => $model->date,
			'options' => array(
				'showButtonPanel' => true,
				'changeYear' => true,
				'dateFormat' => 'yy-mm-dd',
				),
			));
; ?>
		<?php echo $form->error($model,'date'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'time_from'); ?>
</div>
		<div class="rowControl"><?php echo $form->textField($model, 'time_from', array('maxlength' => 45)); ?>
		<?php echo $form->error($model,'time_from'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'time_to'); ?>
</div>
		<div class="rowControl"><?php echo $form->textField($model, 'time_to', array('maxlength' => 45)); ?>
		<?php echo $form->error($model,'time_to'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'batche_id'); ?>
</div>
		<div class="rowControl"><?php echo $form->dropDownList($model, 'batche_id', GxHtml::listDataEx(CourseBatche::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'batche_id'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'courses_id'); ?>
</div>
		<div class="rowControl"><?php echo $form->dropDownList($model, 'courses_id', GxHtml::listDataEx(Courses::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'courses_id'); ?>
		</div><!-- row -->
                </div>
        

        
             
        
             
<div class="row">
<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div>
</div>
<!-- form -->
